#include "ZonePanel.h"

//(*InternalHeaders(ZonePanel)
#include <wx/bitmap.h>
#include <wx/settings.h>
#include <wx/intl.h>
#include <wx/image.h>
#include <wx/string.h>
//*)

//(*IdInit(ZonePanel)
const long ZonePanel::idZoneView = wxNewId();
const long ZonePanel::ID_BITMAPBUTTON1 = wxNewId();
const long ZonePanel::ID_BITMAPBUTTON2 = wxNewId();
const long ZonePanel::ID_BITMAPBUTTON4 = wxNewId();
const long ZonePanel::ID_BITMAPBUTTON3 = wxNewId();
const long ZonePanel::ID_BITMAPBUTTON9 = wxNewId();
const long ZonePanel::ID_BITMAPBUTTON8 = wxNewId();
const long ZonePanel::ID_BITMAPBUTTON7 = wxNewId();
const long ZonePanel::ID_CHOICEBOOK1 = wxNewId();
//*)

BEGIN_EVENT_TABLE(ZonePanel,wxPanel)
	//(*EventTable(ZonePanel)
	//*)
END_EVENT_TABLE()

ZonePanel::ZonePanel(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
	//(*Initialize(ZonePanel)
	wxStaticBoxSizer* StaticBoxPalettes;
	wxFlexGridSizer* FlexGridSizer;
	wxStaticBoxSizer* StaticBoxTools;
	wxBoxSizer* ZoneManager;
	wxStaticBoxSizer* StaticBoxProperties;
	wxGridSizer* SizerToolsGrid;

	Create(parent, wxID_ANY, wxDefaultPosition, wxSize(640,480), wxTAB_TRAVERSAL, _T("wxID_ANY"));
	SetMinSize(wxSize(128,128));
	FlexGridSizer = new wxFlexGridSizer(1, 2, 2, 2);
	FlexGridSizer->AddGrowableCol(0);
	FlexGridSizer->AddGrowableRow(0);
	ZoneView = new wxScrolledWindow(this, idZoneView, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL, _T("idZoneView"));
	ZoneView->SetMinSize(wxSize(128,128));
	ZoneView->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BACKGROUND));
	FlexGridSizer->Add(ZoneView, 5, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0);
	ZoneManager = new wxBoxSizer(wxVERTICAL);
	StaticBoxTools = new wxStaticBoxSizer(wxVERTICAL, this, _("Editing Tools"));
	SizerToolsGrid = new wxGridSizer(3, 7, 0, 0);
	BitmapButton1 = new wxBitmapButton(this, ID_BITMAPBUTTON1, wxBitmap(wxImage(_T("G:\\Work\\C\\BlitzzEngine\\media\\MWTools1.png"))), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW, wxDefaultValidator, _T("ID_BITMAPBUTTON1"));
	BitmapButton1->SetToolTip(_("Cursor (C) - Pans the view."));
	SizerToolsGrid->Add(BitmapButton1, 1, wxALL|wxSHAPED|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 1);
	BitmapButton2 = new wxBitmapButton(this, ID_BITMAPBUTTON2, wxBitmap(wxImage(_T("G:\\Work\\C\\BlitzzEngine\\media\\MWTools2.png"))), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW, wxDefaultValidator, _T("ID_BITMAPBUTTON2"));
	BitmapButton2->SetToolTip(_("Zoom (Z) - Zooms the view in and out."));
	SizerToolsGrid->Add(BitmapButton2, 1, wxALL|wxSHAPED|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 1);
	BitmapButton4 = new wxBitmapButton(this, ID_BITMAPBUTTON4, wxBitmap(wxImage(_T("G:\\Work\\C\\BlitzzEngine\\media\\MWTools3.png"))), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW, wxDefaultValidator, _T("ID_BITMAPBUTTON4"));
	BitmapButton4->SetToolTip(_("Selection (S) - Picks objects and triggers by clicking or rectangle."));
	SizerToolsGrid->Add(BitmapButton4, 1, wxALL|wxSHAPED|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 1);
	BitmapButton3 = new wxBitmapButton(this, ID_BITMAPBUTTON3, wxBitmap(wxImage(_T("G:\\Work\\C\\BlitzzEngine\\media\\MWTools4.png"))), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW, wxDefaultValidator, _T("ID_BITMAPBUTTON3"));
	BitmapButton3->SetToolTip(_("Measure (M) - Finds the measurements of lengths, angles, trajectories, etc."));
	SizerToolsGrid->Add(BitmapButton3, 1, wxALL|wxSHAPED|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 1);
	BitmapButton9 = new wxBitmapButton(this, ID_BITMAPBUTTON9, wxBitmap(wxImage(_T("G:\\Work\\C\\BlitzzEngine\\media\\MWTools5.png"))), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW, wxDefaultValidator, _T("ID_BITMAPBUTTON9"));
	BitmapButton9->SetToolTip(_("Object Brush (O) - Places objects singly or in batches."));
	SizerToolsGrid->Add(BitmapButton9, 1, wxALL|wxSHAPED|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 1);
	BitmapButton8 = new wxBitmapButton(this, ID_BITMAPBUTTON8, wxBitmap(wxImage(_T("G:\\Work\\C\\BlitzzEngine\\media\\MWTools6.png"))), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW, wxDefaultValidator, _T("ID_BITMAPBUTTON8"));
	BitmapButton8->SetToolTip(_("Tile Brush (T) - Paints tiles on layers."));
	SizerToolsGrid->Add(BitmapButton8, 1, wxALL|wxSHAPED|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 1);
	BitmapButton7 = new wxBitmapButton(this, ID_BITMAPBUTTON7, wxBitmap(wxImage(_T("G:\\Work\\C\\BlitzzEngine\\media\\MWTools7.png"))), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW, wxDefaultValidator, _T("ID_BITMAPBUTTON7"));
	BitmapButton7->SetToolTip(_("Trigger Pen (R) - Draws trigger regions and adjusts tags."));
	SizerToolsGrid->Add(BitmapButton7, 1, wxALL|wxSHAPED|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 1);
	StaticBoxTools->Add(SizerToolsGrid, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0);
	ZoneManager->Add(StaticBoxTools, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0);
	StaticBoxProperties = new wxStaticBoxSizer(wxHORIZONTAL, this, _("Properties"));
	ZoneManager->Add(StaticBoxProperties, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 2);
	StaticBoxPalettes = new wxStaticBoxSizer(wxHORIZONTAL, this, _("Palettes"));
	Choicebook1 = new wxChoicebook(this, ID_CHOICEBOOK1, wxDefaultPosition, wxDefaultSize, 0, _T("ID_CHOICEBOOK1"));
	StaticBoxPalettes->Add(Choicebook1, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0);
	ZoneManager->Add(StaticBoxPalettes, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 2);
	FlexGridSizer->Add(ZoneManager, 1, wxALL|wxALIGN_TOP|wxALIGN_CENTER_HORIZONTAL, 2);
	SetSizer(FlexGridSizer);
	FlexGridSizer->SetSizeHints(this);
	//*)
}

ZonePanel::~ZonePanel()
{
	//(*Destroy(ZonePanel)
	//*)
}

